from jiuxian.Base import Base
from jiuxian.Page1 import Page1
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
import time

class Page2(Base,Page1):
    # 点击我的酒仙
    jiuxian_loc=(By.XPATH,'/html/body/div[2]/div/div[2]/ul/li[1]/div[1]/a')
    # 关闭提示
    ts_loc=(By.XPATH,'//*[@id="uGuideBox"]/div/div/span')
    # 点击地址
    dz_loc=(By.XPATH,'/html/body/div[4]/div[1]/div[2]/div[4]/a[3]/span')
    # 删除地址
    sc_loc=(By.XPATH,'/html/body/div[4]/div[3]/div[2]/div[1]/table/tbody/tr[2]/td[4]/a[2]')

    def jiuxian(self):
        self.click(self.jiuxian_loc)

    def ts(self):
        self.click(self.ts_loc)

    def dz(self):
        self.click(self.dz_loc)

    def sc(self):
        self.click(self.sc_loc)

    def jiuxian_luoji2(self):
        self.open_url('https://www.jiuxian.com/')
        self.jiuxian()
        self.window()
        self.scrollTo(800)
        self.ts()
        self.dz()
        self.sc()

